package domain;

import java.util.Date;

public class Order {

	private int id;
	
	private Customer customer;
	
	private Date date;
	
	private float subTotal;
	
	private final float tax = 0.15f;
	
	private final float ShippingAndHandlingCost = 0.2f;
	
	private float totalBilledAmount;
	
	private Shipping shipping;
	
	private Billing billing;

	public Order(int id, Customer customer, Date date, float subTotal,
			float totalBilledAmount, Shipping shipping, Billing billing) {
		super();
		this.id = id;
		this.customer = customer;
		this.date = date;
		this.subTotal = subTotal;
		this.totalBilledAmount = totalBilledAmount;
		this.shipping = shipping;
		this.billing = billing;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public float getSubTotal() {
		return subTotal;
	}

	public void setSubTotal(float subTotal) {
		this.subTotal = subTotal;
	}

	public float getTotalBilledAmount() {
		return totalBilledAmount;
	}

	public void setTotalBilledAmount(float totalBilledAmount) {
		this.totalBilledAmount = totalBilledAmount;
	}

	public Shipping getShipping() {
		return shipping;
	}

	public void setShipping(Shipping shipping) {
		this.shipping = shipping;
	}

	public Billing getBilling() {
		return billing;
	}

	public void setBilling(Billing billing) {
		this.billing = billing;
	}

	public float getTax() {
		return tax;
	}

	public float getShippingAndHandlingCost() {
		return ShippingAndHandlingCost;
	}

}
